<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Quartz 管理</title>
    <link rel="stylesheet" type="text/css" href="/assets/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/assets/css/admin/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/assets/css/style.css" />
    <link rel="stylesheet" type="text/css" href="/assets/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/assets/lib/icheck/icheck.css" />
    <link rel="stylesheet" type="text/css" href="/assets/css/pager.css"/>
</head>
<body>
    <div class="page-container">
        <h3>Quartz管理</h3>
        <table class="table table-border table-bordered table-bg">
            <thead>
            <tr>
                <th>名称</th>
                <th>Trigger名称</th>
                <th>Trigger分组</th>
                <th>下次执行时间</th>
                <th>上次执行时间</th>
                <th>优先级</th>
                <th>Trigger状态</th>
                <th>Trigger类型</th>
                <th>Cron表达式</th>
                <th>任务描述</th>
                <th>JobClass</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item,itemStat : ${list}">
                <td th:text="${item.jobName}"></td>
                <td th:text="${item.triggerName}"></td>
                <td th:text="${item.triggerGroup}"></td>
                <td th:text="${#dates.format(item.nextFireTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                <td th:text="${#dates.format(item.prevFireTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                <td th:text="${item.priority}"></td>
                <td th:text="${item.triggerState}"></td>
                <td th:text="${item.triggerType}"></td>
                <td th:text="${item.cronExpression}"></td>
                <td th:text="${item.description}"></td>
                <td th:text="${item.jobClass}"></td>
                <td>
                    <a style="text-decoration:none" onClick="quartz.pause(this)" href="javascript:;" title="暂停" th:attr="triggerName=${item.triggerName},triggerGroup=${item.triggerGroup}"><i class="Hui-iconfont">&#xe631;</i></a>
                    <a style="text-decoration:none" onClick="quartz.restart(this)" href="javascript:;" title="重启" th:attr="triggerName=${item.triggerName},triggerGroup=${item.triggerGroup}"><i class="Hui-iconfont">&#xe6f7;</i></a>
                    <a style="text-decoration:none" onClick="quartz.remove(this)" href="javascript:;" title="删除" th:attr="triggerName=${item.triggerName},triggerGroup=${item.triggerGroup}"><i class="Hui-iconfont">&#xe609;</i></a>
                    <a style="text-decoration:none" onClick="quartz.edit(this)" href="javascript:;" title="编辑" th:attr="triggerName=${item.triggerName},triggerGroup=${item.triggerGroup}"><i class="Hui-iconfont">&#xe6df;</i></a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <script type="text/javascript" src="/assets/js/jquery/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="/assets/js/jquery/jquery-extend.js"></script>
    <script type="text/javascript" src="/assets/js/H-ui.js"></script>
    <script type="text/javascript" src="/assets/lib/layer/3.0.1/layer.js"></script>
    <script type="text/javascript" src="/assets/js/pager.js"></script>
    <script type="text/javascript" src="/assets/js/H-ui.admin.js"></script>
    <script type="text/javascript" src="/assets/js/app.js?timestrmp=$Date.getSystemTime()" charset="utf-8"></script>
</body>
</html>